package cn.iocoder.yudao.hires.mapper;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.hires.entity.ResumeTagsDO;
import cn.iocoder.yudao.hires.vo.ResumeTagsPageReqVO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 简历--职业优势 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface ResumeTagsMapper extends BaseMapperX<ResumeTagsDO> {

    default PageResult<ResumeTagsDO> selectPage(ResumeTagsPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<ResumeTagsDO>()
                .eqIfPresent(ResumeTagsDO::getUserId, reqVO.getUserId())
                .eqIfPresent(ResumeTagsDO::getTags, reqVO.getTags())
                .betweenIfPresent(ResumeTagsDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(ResumeTagsDO::getId));
    }

}